package com.example.shotscreen;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.widget.RelativeLayout;

/**
 * Created by Alex-Zhang on 2017/11/3.
 */

public class ATView extends RelativeLayout {
    public ATView(Context context) {
        super(context);
        init(context);
    }

    public ATView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init(context);
    }

    public ATView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init(context);
    }

    private void init(Context context) {
        LayoutInflater.from(context).inflate(R.layout.my_view,this,true);
    }


    @Override
    public boolean onTouchEvent(MotionEvent event) {
        return false;
    }
}
